package com.zzty.taskapp.serviceImpl;

import java.util.List;

import com.zzty.taskapp.dao.ClassDAO;
import com.zzty.taskapp.daoImpl.ClassDAOImpl;
import com.zzty.taskapp.entity.Clazz;
import com.zzty.taskapp.service.ClassService;

public class ClassServiceImpl implements ClassService {
	ClassDAO cd = new ClassDAOImpl();

	public int searchCalssIdByName(String name) {
		int classId = cd.searchClassidByName(name);
		return classId;
	}

	public String searchClassNameByOwner(String name) {
		String clazzName = cd.searchClassNameByOwner(name);
		return clazzName;
	}

	public List<Clazz> getAllClazz() {
		return cd.getAllClazz();
	}
}
